package com.baidu.bulls.stock.entity.user;

import com.baidu.bulls.stock.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户角色关联表
 * </p>
 * @author //蔡志豪
 * @since 2022-02-18
 */
@Data
@Entity
@Api(value = "HATEOAS接口-用户角色关联管理(AuthorityUserRole)")
@EqualsAndHashCode(callSuper = false)
@TableName("t_authority_user_role")
@Table(name = "t_authority_user_role")
@ApiModel(value="AuthorityUserRole", description="用户角色关联表")
public class AuthorityUserRole extends BaseEntity {



    @ApiModelProperty(value = "用户id")
    @Column(name = "userId")
    private Long userId;

    @ApiModelProperty(value = "角色id")
    @Column(name = "roleId")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    @Column(name = "roleName")
    private String roleName;

    @ApiModelProperty(value = "角色机构类型")
    @Column(name = "institutionTypeId")
    private String institutionTypeId;

    @ApiModelProperty(value = "角色对应机构类型下的机构id")
    @Column(name = "institutionId")
    private Long institutionId;

    @ApiModelProperty(value = "角色对应的机构名称")
    @Column(name = "institutionName")
    private String institutionName;

    @ApiModelProperty(value = "创建人id")
    @Column(name = "createBy")
    private Long createBy;

    @ApiModelProperty(value = "创建人名称")
    @Column(name = "createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新人id")
    @Column(name = "lastUpdateBy")
    private Long lastUpdateBy;

    @ApiModelProperty(value = "最后更新人名称")
    @Column(name = "lastUpdateUser")
    private String lastUpdateUser;

    @ApiModelProperty(value = "最后更新时间")
    @Column(name = "lastUpdateTime")
    private LocalDateTime lastUpdateTime;


}
